<div class="modal fade in ip-box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" aria-hidden="true" id="newlyAdded">
	<div class="modal-dialog modal-lg" role="document" >
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title pull-left">资源分类管理 — 新增</h4>
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			</div>
			<div class="modal-body">
				<form name="newlyAddedForm">
					<div class="form-group">
						<label class="col-xs-12 col-sm-2 control-label text-right">上级资源分类：</label>
						<div class="col-xs-12 col-sm-10">
							<input type="text" 
								   class="form-control readonly"
								   readonly 
								   ng-model="resName" 
								/>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-2 control-label text-right">资源分类名称：</label>
						<div class="col-xs-12 col-sm-10">
							<input type="text" 
								   name="resName" 
								   class="form-control"
								   autocomplete="off" 
								   required 
								   ng-model="newlyAdded_resName" 
								   />
							<label class="red required">*</label>
							<div class="error ng-hide"	ng-show="newlyAddedForm.resName.$dirty&amp;&amp;newlyAddedForm.resName.$invalid">
								<small class="error" ng-show="newlyAddedForm.resName.$error.required">请输入资源分类名称</small>
							</div>
						</div>
					</div>								
					<div class="form-group">
						<label class="col-xs-12 col-sm-2 control-label text-right">资源分类排序：</label>
						<div class="col-xs-12 col-sm-10">
							<input type="text" 
								   name="categoryOrder" 
								   class="form-control" 
								   autocomplete="off" 
								   required 
								   ng-model="newlyAdded_categoryOrder" 
								   /> 
							<label	class="red required">*</label>
							<div class="error ng-hide"	ng-show="newlyAddedForm.categoryOrder.$dirty&amp;&amp;newlyAddedForm.categoryOrder.$invalid">
								<small class="error" ng-show="newlyAddedForm.categoryOrder.$error.required">请输入资源分类排序</small>
							</div>
						</div>
					</div>	
					<div class="form-group height-auto">
						<label class="col-xs-12 col-sm-2 control-label text-right">描述：</label>
						<div class="col-xs-12 col-sm-10">
							<textarea rows="5" type="text" name="description"
								class="form-control" ng-model="newlyAdded_description">                                    
                                </textarea>
						</div>
					</div>
					<div class="overflow-hide form-group height-auto">
                        <div class="col-xs-12 col-sm-12 text-right">
                        	<button type="button" class="add-column btn btn-normal pull-left btn-default padding-two" data-toggle="modal" data-target="#list">
                        		<span class="glyphicon glyphicon-plus"></span>  
                        		资源
                        	</button>
							<table class="table-column table table-bordered table-header">
                                <thead class="border-table">
                                    <tr>
                                        <td class="w10 text-center">序号</td>
                                        <td class="w10 text-center">资源分类名称</td>
                                        <td class="w20 text-center">资源名称</td>
                                        <td class="w10 text-center">资源类型</td>
                                        <td class="w10 text-center">分享量</td>
                                        <td class="w10 text-center">使用量</td>
                                        <td class="w20 text-center">出版日期</td>
                                        <td class="w10 text-left">操作</td>
                                    </tr>
                                </thead>
                            </table>
                            <div class="table-body">   
                               <table class="table-column table table-bordered table-header talbe-fbfbfb">
                                    <tbody class="">
                                       <tr  ng-class="{'active':$index%2!=0}" >
                                            <td class="w10 text-center">1</td>
                                            <td class="w10 text-center">
                                            	test
                                            </td>
                                            <td class="w20 pointer text-center" >
												test
                                            </td>
                                            <td class="w10 text-center">
                                            	test
                                            </td>
                                            <td class="w10 text-center">
                                            	test
                                            </td>
                                            <td class="w10 text-center">
                                            	test
                                            </td>
                                            <td class="w20 text-center">
                                            	2017/10/12
                                            </td>
                                            <td class="w10 text-center icon-td">
                                           
		                                        <span class="btn-i" title="删除" ng-click="deletetr($index)">
	                                                	<img width="14px" src="../images/right-product/delete.png">
	                                            </span>
                                            </td>
                                        </tr><!-- end ngRepeat: val in branchadd -->
                                    </tbody>
                              
                                </table>
							</div>                                	
						</div>
                    </div>
					<div class="col-sm-12">
						<div class="modal-footer">
							<button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
							<button type="button" 
									class="btn btn-primary" 
									data-dismiss="modal"
									ng-disabled="newlyAddedForm.$invalid"
									ng-click="submitNewlyAdded()"
									>确定新增
							</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>